class Ihrmcommon:
    # 断言登录接口
    @classmethod
    def login_assert(cls, resp, state_code, success, code, message):
        assert resp.status_code == state_code
        assert resp.json()["success"] == success
        assert resp.json()["code"] == code
        assert resp.json()["message"] == message

    # 断言增删改员工接口
    @classmethod
    def uid_assert(cls, resp, state_code, success, code, message):
        assert resp.status_code == state_code
        assert resp.json()["success"] == success
        assert resp.json()["code"] == code
        assert resp.json()["message"] == message
